-- GENERATED SPELL FOR [Protectorate Regenerator] --


function spell0_21783(pUnit, Event) --@Holy Bolt,n/a--
pUnit:FullCastSpellOnTarget(34232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21783', 2500, 1)
end

function Sorts_21783(pUnit, Event)
local choix_sorts_21783 = math.random(0, 0)
if choix_sorts_21783 == 0 then
pUnit:RegisterEvent('spell0_21783', 1, 1)
end
end

function mob21783_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21783', math.random(1500, 3000), 1)
end

function mob21783_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21783_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21783_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21783, 1, 'mob21783_Action')
RegisterUnitEvent(21783, 2, 'mob21783_Leave')
RegisterUnitEvent(21783, 3, 'mob21783_Kill')
RegisterUnitEvent(21783, 4, 'mob21783_Die')
